<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>


<xsl:include href='../xsl.include.main.xsl'/>

<xsl:template match="row">

<xsl:choose>
	<xsl:when test="@picname">
	</xsl:when>
	<xsl:otherwise>
	</xsl:otherwise>
</xsl:choose>
<p/>
	<form name="certify{position()}" method="post" action="?userid={@userid}&amp;enum={@enum}&amp;makeItPublic=2">
	<input type="hidden" name="FORM_ID" value="picture"></input>
	<div style="clear:right;" class="dotlin">
		<select class="body_10px" size="1" name="WHY">
		<option value="5">Non lo ritrae</option>
		<option value="1">Non visibile, ricaricarla!</option>
		<option value="2">Ci sono minori</option>
		<option value="3">Troppo esplicita</option>
		<option value="4">Altre persone</option>
		<option value="6">Altro</option>
		</select>
	<a href="javascript:document.certify{position()}.submit();"><img border="0" src="/imgs/warning.gif"/></a>
	</div>
	</form>
<xsl:choose>
	<xsl:when test="@thumb">
		<form method="POST">
		<input type="hidden" name="makeItPublic" value="1"></input>
		<input type="hidden" name="enum" value="{@enum}"></input>
		<input type="hidden" name="picname" value="{@picname}"></input>
		<input type="image" alt="submit" src="/imgs/user/thumb/{@thumb}"/>
		</form>	
	</xsl:when>
	<xsl:otherwise>
		<div class="bodyB" style="padding-bottom:10px;">Scegli quella che preferisci cliccandoci sopra!</div>
			<xsl:for-each select="frame">
		<div style="float:left;">
			<form method="POST">
			<input type="hidden" name="makeItPublic" value="1"></input>
			<input type="hidden" name="winner" value="{@name}"></input>
			<input type="hidden" name="enum" value="{@enum}"></input>
			<input type="hidden" name="picname" value="{@picname}"></input>
			<input type="image" alt="submit" src="{@path}{@name}"/>
			</form>
<!--
			<br/><xsl:value-of select="@framewidth"/>x<xsl:value-of select="@frameheight"/>
			<br/>frameprop:<xsl:value-of select="@frameprop"/>
			<br/><xsl:value-of select="@picwidth"/>x<xsl:value-of select="@picheight"/>
			<br/>picprop:<xsl:value-of select="@picprop"/>
			<br/>diff:<xsl:value-of select="@diff"/>
!-->
		</div>
			</xsl:for-each>
	</xsl:otherwise>
</xsl:choose>

</xsl:template>

</xsl:stylesheet>